package cn.source.zk.mapper;

import cn.source.zk.domain.entity.DeviceDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface ZkDeviceDetailsMapper {


    /**
     * 新增设备明细
     * @param deviceDetails
     */
    void add(DeviceDetails deviceDetails);

    /**
     * 根据num查询设备明细
     * @param devId
     * @return
     */
    DeviceDetails getByDevId(Long devId);

    /**
     * 修改设备明细
     * @param deviceDetails
     * @return
     */
    int edit(DeviceDetails deviceDetails);

    /**
     * 根据devId删除明细数据
     * @param devIds
     * @return
     */
    int removeBatch(@Param("devIds") List<Long> devIds);
}
